package cn.liutao.order.entity.po;

import cn.liutao.common.entity.BaseEntity;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单购物车关联表 实体类。
 *
 * @author liutao
 * @since 2023-11-02
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "order_cart_relation")
public class OrderCartRelation extends BaseEntity implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 关联订单
     */
    private Integer orderId;

    /**
     * 关联购物车
     */
    private Integer cartId;

    /**
     * 支付时的价格
     */
    private BigDecimal price;

}
